import {
    Auth,
    AutoComplete,
    Avatar, BackTop,
    Breadcrumb,
    BreadcrumbItem,
    Button,
    Captcha,
    Card,
    Cell,
    CellGroup,
    Checkbox,
    City,
    Col,
    Content, DatePicker, Description, DescriptionList,
    Divider,
    Dropdown,
    DropdownItem,
    DropdownMenu,
    Exception,
    Footer,
    Form,
    FormItem,
    Header,
    Icon,
    Image,
    Input,
    InputNumber,
    Layout,
    Login,
    Menu,
    MenuItem,
    Message,
    Modal,
    Password,
    Poptip,
    Radio,
    RadioGroup,
    Row,
    Select,
    Sider, Space,
    Spin,
    Submenu,
    Submit, Switch,
    Tag,
    Tooltip, Tree,
    TreeSelect,
    Upload,
    UserName
} from "view-ui-plus";
import LoginItem from "view-ui-plus/dist/viewuiplus.min.esm";

const iviewComponent = [
    Login,
    LoginItem,
    Checkbox,
    Submit,
    UserName,
    Password,
    Message,
    Layout,
    Sider,
    Header,
    Content,
    Footer,
    Menu,
    Submenu,
    MenuItem,
    Breadcrumb,
    BreadcrumbItem,
    Icon,
    DropdownItem,
    Dropdown,
    Button,
    Spin,
    Row,
    Tooltip,
    Avatar,
    DropdownMenu,
    Tag,
    Exception,
    Card,
    CellGroup,
    Cell,
    Form,
    FormItem,
    Input,
    City,
    Radio,
    RadioGroup,
    Divider,
    Col,
    Captcha,
    Upload,
    Image,
    TreeSelect,
    Modal,
    InputNumber,
    Poptip,
    Select,
    AutoComplete,
    BackTop,
    Tree,
    Space,
    Switch,
    Auth,
    DatePicker,
    DescriptionList,
    Description
]

export const iview_demand_component = {
    install: function (Vue, options) {
        iviewComponent.map(c => {
            Vue.component(c.name, c)
        })
    }
}
